package com.eastfair.questionnaire.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 问卷外部系统映射关系
 * </p>
 *
 * @author yuwx
 * @since 2021-08-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "QuestionnaireRelationSaveDTO", description = "问卷外部系统映射关系")
public class QuestionnaireRelationSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long projectId;
    /**
     * 映射类型
     */
    @ApiModelProperty(value = "映射类型")
    @Size(max = 64, message = "映射类型长度不能超过64")
    private String relationType;
    /**
     * 本系统id
     */
    @ApiModelProperty(value = "本系统id")
    private Long selfId;
    /**
     * 外部系统id
     */
    @ApiModelProperty(value = "外部系统id")
    @Size(max = 32, message = "外部系统id长度不能超过32")
    private String externalId;
    /**
     * 外部系统类型
     */
    @ApiModelProperty(value = "外部系统类型")
    @Size(max = 32, message = "外部系统类型长度不能超过32")
    private String externalSourceSystem;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnable;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer isDelete;

}
